package com.itheima.reggie.service;

import com.itheima.reggie.entity.Category;
import com.itheima.reggie.entity.Page;
import com.itheima.reggie.entity.R;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Transactional
public interface CategoryService {

    void add(Category category);

    Page<Category> find(Integer page, Integer pageSize);

    void delete(Long id);

    void update(Category category);

    List<Category> find();

    R<List<Category>> list(Integer type);
}
